

import os
import shutil


old_path="/root/dataset/car_plate/simple-car-plate-recognition-2-master/generateCarPlate/gen_res"
new_path="/root/dataset/car_number"

filelist=os.listdir(old_path)

for item in filelist:
    # print(item)
    print('--------------------------------------')
    src = os.path.join(os.path.abspath(old_path), item)
    for item2 in os.listdir(src):
        
        src2 = os.path.join(os.path.abspath(src), item2)
        print(src2)

        dir_path=os.path.join(new_path,item2)

        shutil.copy(src2,dir_path)

        





    





